import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import websiteTop from './components/websiteTop/index.vue'
import './style/reset.less'
// 引入element插件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import pinia from './store'
import vue3videoPlay from "vue3-video-play"; // 引入组件
import "vue3-video-play/dist/style.css"; // 引入css

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus, {
    locale: zhCn,
  })
app.use(vue3videoPlay);
app.component('websiteTop',websiteTop)
app.use(router)
app.use(ElementPlus)
app.use(pinia)
app.mount('#app')